package DBTasks;

public class Summary {

    private String shelterName;
    private int eventCount, totalDonations, totalAdoptions, petsReceived, month;

    public Summary(String shelterName, int month, int eventCount, int totalDonations, int totalAdoptions, int petsReceived) {
        this.shelterName = shelterName;
        this.month = month;
        this.eventCount = eventCount;
        this.totalDonations = totalDonations;
        this.totalAdoptions = totalAdoptions;
        this.petsReceived = petsReceived;
    }

    public String getShelterName() {
        return shelterName;
    }

    public String getMonth() {
        switch (month) {
        case 1:
            return "January";
        case 2:
            return "February";
        case 3:
            return "March";
        case 4:
            return "April";
        case 5:
            return "May";
        case 6:
            return "June";
        case 7:
            return "July";
        case 8:
            return "August";
        case 9:
            return "September";
        case 10:
            return "October";
        case 11:
            return "November";
        case 12:
            return "December";
        default:
            return "Not a valid month";
        }
    }

    public int getEventCount() {
        return eventCount;
    }

    public int getTotalDonations() {
        return totalDonations;
    }

    public int getTotalAdoptions() {
        return totalAdoptions;
    }

    public int getPetsReceived() {
        return petsReceived;
    }
    
    public String toString(){
        return shelterName+" "+month+" "+eventCount+" "+totalDonations+" "+totalAdoptions+" "+petsReceived;
    }

}
